package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.WentifenleiMapper;
import com.ruoyi.system.domain.Wentifenlei;
import com.ruoyi.system.service.IWentifenleiService;

/**
 * 问题分类Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-13
 */
@Service
public class WentifenleiServiceImpl implements IWentifenleiService 
{
    @Autowired
    private WentifenleiMapper wentifenleiMapper;

    /**
     * 查询问题分类
     * 
     * @param wtflId 问题分类主键
     * @return 问题分类
     */
    @Override
    public Wentifenlei selectWentifenleiByWtflId(Long wtflId)
    {
        return wentifenleiMapper.selectWentifenleiByWtflId(wtflId);
    }

    /**
     * 查询问题分类列表
     * 
     * @param wentifenlei 问题分类
     * @return 问题分类
     */
    @Override
    public List<Wentifenlei> selectWentifenleiList(Wentifenlei wentifenlei)
    {
        return wentifenleiMapper.selectWentifenleiList(wentifenlei);
    }

    /**
     * 新增问题分类
     * 
     * @param wentifenlei 问题分类
     * @return 结果
     */
    @Override
    public int insertWentifenlei(Wentifenlei wentifenlei)
    {
        return wentifenleiMapper.insertWentifenlei(wentifenlei);
    }

    /**
     * 修改问题分类
     * 
     * @param wentifenlei 问题分类
     * @return 结果
     */
    @Override
    public int updateWentifenlei(Wentifenlei wentifenlei)
    {
        return wentifenleiMapper.updateWentifenlei(wentifenlei);
    }

    /**
     * 批量删除问题分类
     * 
     * @param wtflIds 需要删除的问题分类主键
     * @return 结果
     */
    @Override
    public int deleteWentifenleiByWtflIds(Long[] wtflIds)
    {
        return wentifenleiMapper.deleteWentifenleiByWtflIds(wtflIds);
    }

    /**
     * 删除问题分类信息
     * 
     * @param wtflId 问题分类主键
     * @return 结果
     */
    @Override
    public int deleteWentifenleiByWtflId(Long wtflId)
    {
        return wentifenleiMapper.deleteWentifenleiByWtflId(wtflId);
    }
}
